/* ==================== 全局样式 ==================== */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f6fa;
}

/* ==================== 导航栏样式 ==================== */
.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ==================== 主页样式 ==================== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-image {
  animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== 特色卡片样式 ==================== */
.feature-card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==================== 进度指示器样式 ==================== */
.progress-indicator {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.step::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.step:last-child::before {
  display: none;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
  transition: var(--transition);
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.step.active .step-title {
  color: var(--primary-color);
  font-weight: 600;
}

.step.completed .step-number {
  background-color: var(--success-color);
  color: white;
}

.step.completed .step-title {
  color: var(--success-color);
}

.step.completed::before {
  background-color: var(--success-color);
}

/* ==================== 表单样式 ==================== */
.form-container {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
  background-color: #fff;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: #adb5bd;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.invalid-feedback {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* ==================== 上传区域样式 ==================== */
.upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  background-color: rgba(0, 123, 255, 0.05);
}

.upload-zone.dragover {
  border-color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
}

.upload-content i {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.upload-content h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.upload-content p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* ==================== 文件列表样式 ==================== */
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  background-color: #fff;
  transition: var(--transition);
}

.file-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.file-info {
  display: flex;
  align-items: center;
}

.file-icon {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.file-details h6 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--dark-color);
}

.file-details p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.85rem;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.file-progress {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.file-progress-bar {
  height: 100%;
  background: var(--success-color);
  transition: width 0.3s ease;
}

/* ==================== 按钮样式 ==================== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* ==================== 卡片样式 ==================== */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  padding: 1.25rem 1.5rem;
}

.card-header h5 {
  margin: 0;
  font-weight: 600;
  color: var(--dark-color);
}

.card-body {
  padding: 1.5rem;
}

/* ==================== 警告框样式 ==================== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  box-shadow: var(--box-shadow);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

/* ==================== 页脚样式 ==================== */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .progress-indicator {
    padding: 1rem;
  }
  
  .step-title {
    font-size: 0.8rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step:not(:last-child)::before {
    top: 20px;
  }
  
  .form-container {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .upload-zone {
    padding: 2rem 1rem;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .file-actions {
    margin-top: 0.75rem;
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .d-grid .btn {
    margin-bottom: 0.5rem;
  }
  
  .hero-content .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ==================== 动画效果 ==================== */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== 成功页面样式 ==================== */
.success-page {
  text-align: center;
  padding: 3rem 0;
}

.success-page .fa-check-circle {
  color: var(--success-color);
  font-size: 4rem;
  margin-bottom: 2rem;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==================== 消息提示样式 ==================== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  box-shadow: var(--box-shadow);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

/* ==================== 工具提示 ==================== */
.tooltip {
  font-size: 0.85rem;
}

/* ==================== 加载动画 ==================== */
.spinner-border {
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== 辅助类 ==================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}

/* ==================== 下拉菜单特殊样式 ==================== */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  cursor: pointer;
}

.form-select:disabled {
  background-color: #f8f9fa;
  color: var(--secondary-color);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-select option {
  padding: 0.5rem;
  color: var(--dark-color);
}

/* 地区选择特殊样式 */
.form-select[id*="Province"],
.form-select[id*="City"],
.form-select[id*="District"] {
  position: relative;
}

.form-select[id*="Province"]:focus,
.form-select[id*="City"]:focus,
.form-select[id*="District"]:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* 加载状态指示器 */
.loading-select {
  background-image: url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_V8m1%7btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7d.spinner_V8m1 circle%7bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite%7d%40keyframes spinner_zKoa%7b100%25%7btransform:rotate(360deg)%7d%7d%40keyframes spinner_YpZS%7b0%25%7bstroke-dasharray:0 150;stroke-dashoffset:0%7d47.5%25%7bstroke-dasharray:42 150;stroke-dashoffset:-16%7d95%25,100%25%7bstroke-dasharray:42 150;stroke-dashoffset:-59%7d%7d%3c/style%3e%3cg class='spinner_V8m1'%3e%3ccircle cx='10' cy='10' r='7.5' fill='none' stroke='%23007bff' stroke-width='3'/%3e%3c/g%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 16px !important;
}

/* ==================== 字符计数器 ==================== */
.form-text {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

#contentLength {
  font-weight: 600;
}

/* ==================== 页面过渡效果 ==================== */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
} 